<div class="configurations index">
	<h2><?php echo __d('configurations','Configurations');?></h2>
	<?php echo $this->Form->create('Configuration');?>
	<table cellpadding="0" cellspacing="0">
	<tr>
			<th><?php echo $this->Paginator->sort('id');?></th>
			<th><?php echo $this->Paginator->sort('name');?></th>
			<th><?php echo $this->Paginator->sort('value');?></th>
			<th class="actions"><?php echo $this->Html->link(__d('configurations','+ Add'), array('action' => 'admin_add')); ?></th>
	</tr>
	<?php
	foreach ($configurations as $key => $configuration):
	?>
	<tr>
		<td><?php echo h($configuration['Configuration']['id']); ?>&nbsp;</td>
		<td><?php echo h($configuration['Configuration']['name']); ?>&nbsp;</td>
		<td><?php 
			echo $this->Form->input($key.'.value',array('type'=>'text','label'=>false,'value'=>$configuration['Configuration']['value'])); 
			echo $this->Form->input($key.'.id',array('value'=>$configuration['Configuration']['id']));
			?>&nbsp;</td>
		<td class="actions">
			<?php //echo $this->Html->link(__d('configurations','Edit'), array('action' => 'edit', $configuration['Configuration']['id'])); ?>
			<?php echo $this->Form->postLink(__d('configurations','Delete'), array('action' => 'delete', $configuration['Configuration']['id']), null, __d('configurations','Are you sure you want to delete # %s?', $configuration['Configuration']['id'])); ?>
		</td>
	</tr>
<?php endforeach; ?>
	</table>
	<?php echo $this->Form->end(__d('configurations','Submit'));?>
	<p>
	<?php
	echo $this->Paginator->counter(array(
	'format' => __d('configurations','Page {:page} of {:pages}, showing {:current} records out of {:count} total, starting on record {:start}, ending on {:end}')
	));
	?>	</p>

	<div class="paging">
	<?php
		echo $this->Paginator->prev('< ' . __d('configurations','previous'), array(), null, array('class' => 'prev disabled'));
		echo $this->Paginator->numbers(array('separator' => ''));
		echo $this->Paginator->next(__d('configurations','next') . ' >', array(), null, array('class' => 'next disabled'));
	?>
	</div>
</div>
<?php echo $this->element('/menu/left')?>
